package com.action;
import com.model.Student;  
import com.service.StudentService;  
  
import com.opensymphony.xwork2.ActionSupport; 
public class updateAction extends ActionSupport {
	  private Student  student;  
	    private StudentService studentService;  
	    public Student getUser() {  
	        return student;  
	    }  
	    public void setUser(Student student) {  
	        this.student = student;  
	    }  
	    public StudentService getUserService() {  
	        return studentService;  
	    }  
	    public void setUserService(StudentService studentService) {  
	        this.studentService = studentService;  
	    }  
	    @Override  
	    public String execute() throws Exception {  
	        this.studentService.update(this.student);  
	        return SUCCESS;  
	    }  
}
